import request from '@/utils/request'
//  获取门店列表
export function getBranchList(data: any) {
  return request({
    url: '/Base_Branch/GetPageData',
    method: 'post',
    data,
  })
}

//  删除门店
export function delbranch(data: any) {
  return request({
    url: '/Base_Branch/delbranch',
    method: 'post',
    data,
  })
}

//  门店新增、编辑
export function branchedit(data: any) {
  return request({
    url: '/Base_Branch/branchedit',
    method: 'post',
    data,
  })
}

//  下载
export function Base_BranchDown(data: any) {
  return request({
    url: '/Base_Branch/DownLoadTemplate',
    method: 'get',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}
//  导出
export function Base_BranchExport(data: any) {
  return request({
    url: '/Base_Branch/Export',
    method: 'post',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
    data,
  })
}
